﻿using FileManagerSystem.DbInfos;
using LiteDB;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace FileManagerSystem.Repository
{
    /// <summary>
    /// 映射文件Dao仓库
    /// </summary>
    public class ReflectFileRepository : BaseRepository<ReflectFileInf>, IReflectFileRepository
    {
        public new async Task<BsonValue> Insert(ReflectFileInf forecast)
        {
            forecast.UploadTime = DateTime.Now;
            return await base.Insert(forecast, BsonAutoId.Guid);
        }
    }
}
